﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            
        }
        public static void Text()
        {
            int[] arr = { 11, 22, 33, 44 };
            int sum = 0;
            int max = arr[0];
            int min = arr[0];
            double avg = arr[0];

            Class1 a = new Class1();
            a.Aa(arr, ref sum, ref max, ref min, ref avg);
            Console.WriteLine("sum: {0} max: {1} min: {2} avg: {3}", sum, max, min, avg);

            Class1 b = new Class1();
            b.Ab(arr, out sum, out max, out min, out avg);
            Console.WriteLine("sum: {0} max: {1} min: {2} avg: {3}", sum, max, min, avg);
        }
    }
}
